package com.xxxx.car.appointment.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xxxx.car.common.annotation.Excel;
import com.xxxx.car.common.core.domain.BaseEntity;

/**
 * 结算单对象 car_statement
 * 
 * @author Huang
 * @date 2024-08-28
 */
@Data
@TableName("car_statement")
public class Statement implements Serializable
{
    private static final long serialVersionUID = 1L;

    // 消费中
    public static final Long CONSUMER = 0L;

    // 已支付
    public static final Long PAID = 1L;

    /** id */
    private Long id;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;

    /** 联系人方式 */
    private String customerPhone;

    /** 实际到店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实际到店时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date actualArrivalTime;

    /** 车牌号码 */
    private String carNumber;

    /** 汽车类型 */
    private String carType;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private Long serviceType;

    /** 预约单id */
    @Excel(name = "预约单id")
    private Long appointmentId;

    /** 结算状态 */
    @Excel(name = "结算状态")
    private Long status;

    /** 收款时间 */
    private Date payTime;

    /** 收款人id */
    private Long payeeId;

    /** 总消费金额 */
    @Excel(name = "总消费金额")
    private BigDecimal totalAmount;

    /** 服务项数量 */
    @Excel(name = "服务项数量")
    private BigDecimal totalQuantity;

    /** 折扣金额 */
    @Excel(name = "折扣金额")
    private BigDecimal discountAmount;

    /** 备注 */
    @Excel(name = "备注")
    private String info;

    /** 是否删除 */
    private Long isDelete;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 请求参数 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

}
